#pragma once
class CConfigMgr
{
public:
	
	static CConfigMgr& GetInstance()
	{
		if (m_instance == NULL)
		{
			m_instance = new CConfigMgr();
		}
		return *m_instance;
	}
	HRESULT GetConnectionString(BSTR name, _bstr_t& value);

private:
	CConfigMgr(void);
	~CConfigMgr(void);

	static CConfigMgr * m_instance;
	MSXML2::IXMLDOMDocument2Ptr m_spDoc;
	MSXML2::IXMLDOMElementPtr m_spRoot;

	BOOL m_initError;

public:
	HRESULT Init(void);
};

